<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page errorPage="error.jsp"%>
<%request.setCharacterEncoding("UTF-8"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<!-- request.jsp에서 전송한 요청 파라미터 조회 -->
<%=session.getId()/*JSessionID 조회*/ %>
ID : <%=request.getParameter("id") %><br>
이름 : <%=request.getParameter("name") %><br>
취미 : 
<% 
	String [] hobby = request.getParameterValues("hobby"); 
	for(int idx = 0; idx <hobby.length; idx++){
		out.println(hobby[idx]+"<br>");		
	}

%>

</body>
</html>